import { defineConfig } from "rollup"
import typescript from "@rollup/plugin-typescript"

export default defineConfig({
  input: "./src/index.ts",
  output: [
    {
      file: "dist/bundle.cjs.js",
      format: "cjs", // CommonJS 格式
    },
    {
      file: "dist/bundle.esm.js",
      format: "esm", // ES Module 格式
    },
  ],
  plugins: [typescript],
})
